

import request from "@/service/axios/index";

const brandApi = {

    // 查询品牌列表
    getBrandList: (params) => {
        return request.post({ url: '/product/brand/list', params })
    },
    // 获取品牌详情
    getBrand: (id) => {
        return request.get({ url: '/product/brand/get?id=' + id })
    },
    // 新增品牌
    createBrand: (data) => {
        return request.post({ url: '/product/brand/create', data })
    },
    // 删除品牌
    deleteBrand: (id) => {
        return request.delete({ url: '/product/brand/delete?id=' + id })
    },
}
export default brandApi;